package gui.history;

import java.text.SimpleDateFormat;
import java.util.ResourceBundle;

import javax.swing.table.DefaultTableCellRenderer;

class DateRenderer extends DefaultTableCellRenderer {

	private static final long serialVersionUID = 6350273814593046932L;
	private SimpleDateFormat df;
	
	public DateRenderer() {
		super();
		ResourceBundle msg = ResourceBundle.getBundle("DataHistoryGUI");
		df = new SimpleDateFormat(msg.getString("DateFormat"));
	}
	
	public void setValue(Object value) {
		setText(df.format(value));
	}
}
